<?php
/**
 * YOS News Crawler View
 *
 * @package		yos_news_crawler
 * @subpackage	Link Manager
 * @link		http://yopensource.com
 * @author		yopensource
 * @copyright 	yopensource (yopensource@gmail.com)
 * @license		Commercial
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );

jimport( 'joomla.application.component.view');

// Set the table directory
JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables');

/**
 * HTML View class for the YOS News Crawler views
 *
 * @static
 * @package		YOS
 * @subpackage	YOS_News_Crawler
 * @since 1.0
 */
class YOS_NewsViewCmsManager extends JView
{
	function display($tpl = null)
	{
		global $mainframe,$option;

		// Set the toolbar
		$this->_setToolBar();
		$model=$this->getModel('cmsmanager');
		$data		= $model->getData();

		$this->assignRef('data',$data);		
		parent::display($tpl);
	}

	function _setToolBar()
	{
		JHTML::stylesheet( 'yos_news_crawler.css', 'administrator/components/com_yos_news_crawler/assets/' );		
		JToolBarHelper::title( JText::_( 'Manager Cms' ).' <small>[Gold Version]</small>', 'news' );
		JToolBarHelper::save('cms.save');
		JToolBarHelper::preferences('com_yos_news_crawler', '300');

		JSubMenuHelper::addEntry('Links Manager', 'index.php?option=com_yos_news_crawler&task=linkmanager', false);
		JSubMenuHelper::addEntry('Jobs Manager', 'index.php?option=com_yos_news_crawler&task=jobmanager', false);
		JSubMenuHelper::addEntry('Cms Manager', 'index.php?option=com_yos_news_crawler&task=cmsmanager', true);
		JSubMenuHelper::addEntry('Links Receive', 'index.php?option=com_yos_news_crawler&task=linkcheck', false);
		JSubMenuHelper::addEntry('Restore', 'index.php?option=com_yos_news_crawler&task=restore', false);
		JSubMenuHelper::addEntry('About', 'index.php?option=com_yos_news_crawler&task=about', false);
	}
}